package com.erp.stock.dao;

import com.erp.stock.entity.RawMaterial;
import org.hibernate.sql.ordering.antlr.SortSpecification;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface RawMaterialDao extends JpaRepository<RawMaterial,Long> {

    List<RawMaterial> findAllByNameLike(String name, Pageable pageable);
}
